home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / Ss-Sz / Summarizer.cpt / Summarizer 1.3 / background_8347.txt < prev    next >
Encoding:
Text File  |  1987-12-25  |  8.6 KB  |  330 lines

  1. -- background: 8347 from stack: in.3
  2. -- bmap block id: 3497
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: BlankChaptBkgnd
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: 0000
  11. -- rect: left=20 top=303 right=330 bottom=87
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Quit
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   if short name of this card is "TpcLstTmplt" then exit mouseup
  23.   answer "Perhaps you accidently pressed Quit?" with "Yes I did" or "No I didn't"
  24.   if it is "No I didn't" then domenu "Quit Hypercard"
  25. end mouseUp
  26.  
  27.  
  28.  
  29.  
  30. -- part 4 (field)
  31. -- low flags: 01
  32. -- high flags: 2007
  33. -- rect: left=254 top=0 right=342 bottom=512
  34. -- title width / last selected line: 0
  35. -- icon id / first selected line: 0 / 0
  36. -- text alignment: 0
  37. -- font id: 3
  38. -- text size: 9
  39. -- style flags: 0
  40. -- line height: 12
  41. -- part name: TpcLstFld
  42. ----- HyperTalk script -----
  43. on mouseup
  44.   Put the number of words in field "TpcLstFld" into NumWords
  45.   if NumWords is 0 then exit mouseup
  46.   global chapt
  47.   set locktext of field "TpcLstFld" to false
  48.   get the clickloc
  49.   delete item 1 of it
  50.   click at 493,it
  51.   click at 260,it with shiftkey
  52.   set locktext of field "TpcLstFld" to true
  53.   repeat with x = 1 to NumWords
  54.     if the selection is line x of field "TpcLstFld" then exit repeat
  55.   end repeat
  56.   put line x of field "TpcOrdrFld" into TopicNum
  57.   put Chapt & TopicNum into UserChoice
  58.   visual effect zoom open slowly
  59.   go to card UserChoice
  60.   if the number of card fields is 1
  61.   then put IBeam("TxtFld") into dummy
  62. end mouseup
  63.  
  64.  
  65.  
  66. -- part 5 (button)
  67. -- low flags: 00
  68. -- high flags: 0000
  69. -- rect: left=92 top=303 right=330 bottom=159
  70. -- title width / last selected line: 0
  71. -- icon id / first selected line: 0 / 0
  72. -- text alignment: 1
  73. -- font id: 0
  74. -- text size: 12
  75. -- style flags: 0
  76. -- line height: 16
  77. -- part name: Chapter List
  78. ----- HyperTalk script -----
  79. on mouseUp
  80.   if short name of this card is "TpcLstTmplt" then exit mouseup
  81.   go to card "ChptLstCrd"
  82. end mouseUp
  83.  
  84.  
  85.  
  86.  
  87. -- part 13 (field)
  88. -- low flags: 81
  89. -- high flags: 2004
  90. -- rect: left=156 top=120 right=205 bottom=356
  91. -- title width / last selected line: 0
  92. -- icon id / first selected line: 0 / 0
  93. -- text alignment: 1
  94. -- font id: 3
  95. -- text size: 12
  96. -- style flags: 19200
  97. -- line height: 16
  98. -- part name: No Match
  99. ----- HyperTalk script -----
  100. on mouseup
  101.   hide field "No Match"
  102. end mouseup
  103.  
  104.  
  105. -- part 16 (field)
  106. -- low flags: 81
  107. -- high flags: 0007
  108. -- rect: left=86 top=103 right=215 bottom=150
  109. -- title width / last selected line: 0
  110. -- icon id / first selected line: 0 / 0
  111. -- text alignment: 0
  112. -- font id: 3
  113. -- text size: 9
  114. -- style flags: 0
  115. -- line height: 12
  116. -- part name: TpcOrdrFld
  117.  
  118.  
  119. -- part 21 (button)
  120. -- low flags: 00
  121. -- high flags: 0000
  122. -- rect: left=20 top=265 right=292 bottom=87
  123. -- title width / last selected line: 0
  124. -- icon id / first selected line: 0 / 0
  125. -- text alignment: 1
  126. -- font id: 0
  127. -- text size: 12
  128. -- style flags: 0
  129. -- line height: 16
  130. -- part name: Add Topics
  131. ----- HyperTalk script -----
  132. on mouseup
  133.   if short name of this card is "TpcLstTmplt" then exit mouseup
  134.   put short name of this card into Chapt
  135.   put the number of chars in Chapt into NumChars
  136.   put 0 into ChaptNum
  137.   repeat with x = NumChars down to 1
  138.     get 26 ^ (x - 1) * ((CharToNum of char x of Chapt) - 65)
  139.     add It to ChaptNum
  140.   end repeat
  141.   repeat while true
  142.     put the number of lines in field "TpcLstFld" + 1 into TopicNum
  143.     put "Name Topic" && TopicNum && "of Chapt" && ChaptNum into Prompt
  144.     ask prompt
  145.     if it is empty then
  146.       exit mouseup
  147.     end if
  148.     put it into UsrTpcNam
  149.     put UsrTpcNam & return after field "TpcLstFld"
  150.     put TopicNum & return after field "TpcOrdrFld"
  151.     set cursor to 4
  152.     set lockscreen to true
  153.     put PasteAtPrev("NtTmplt") into dummy
  154.     put Chapt & TopicNum into NtCrdNam
  155.     set the name of this card to NtCrdNam
  156.     put UsrTpcNam into field "HeaderFld"
  157.     go to card Chapt
  158.     set lockscreen to false
  159.     flash 2
  160.   end repeat
  161. end mouseup
  162.  
  163.  
  164. -- part 22 (button)
  165. -- low flags: 00
  166. -- high flags: 0000
  167. -- rect: left=92 top=265 right=292 bottom=159
  168. -- title width / last selected line: 0
  169. -- icon id / first selected line: 0 / 0
  170. -- text alignment: 1
  171. -- font id: 0
  172. -- text size: 12
  173. -- style flags: 0
  174. -- line height: 16
  175. -- part name: Rename
  176. ----- HyperTalk script -----
  177. on mouseUp
  178.   if short name of this card is "TpcLstTmplt" then exit mouseup
  179.   Put the number of words in field "TpcLstFld" into NumWords
  180.   if NumWords is 0 then exit mouseup
  181.   ask "Rename what Topic?"
  182.   if it is empty then exit mouseup
  183.   repeat with LnNum = 1 to NumWords
  184.     if It is line LnNum of field "TpcLstFld" then exit repeat
  185.     if LnNum is NumWords then
  186.       show field "No Match"
  187.       exit mouseup
  188.     end if
  189.   end repeat
  190.   put "Enter New Title for Topic" into prompt
  191.   ask prompt
  192.   if it is empty then exit mouseup
  193.   put it into NewName
  194.   put NewName into line LnNum of field "TpcLstFld"
  195.   set cursor to 4
  196.   set lockscreen to true
  197.   put short name of this card into LetterName
  198.   put line LnNum of field "TpcOrdrFld" into TpcOrdrNum
  199.   put LetterName & TpcOrdrNum into RenamedCrd
  200.   go to card RenamedCrd
  201.   put NewName into field "HeaderFld"
  202.   repeat while true
  203.     go to next card
  204.     if short name of this card is "@" then
  205.       put "‚Ķ" && NewName && "cont." into field "HeaderFld"
  206.     else
  207.       exit repeat
  208.     end if
  209.   end repeat
  210.   go to card LetterName
  211.   set lockscreen to false
  212.   flash 2
  213. end mouseUp
  214.  
  215.  
  216. -- part 23 (button)
  217. -- low flags: 00
  218. -- high flags: 0000
  219. -- rect: left=164 top=265 right=292 bottom=231
  220. -- title width / last selected line: 0
  221. -- icon id / first selected line: 0 / 0
  222. -- text alignment: 1
  223. -- font id: 0
  224. -- text size: 12
  225. -- style flags: 0
  226. -- line height: 16
  227. -- part name: Delete
  228. ----- HyperTalk script -----
  229. on mouseUp
  230.   put number of lines in field "TpcLstFld" into LstTNum
  231.   if LstTNum is 0 then exit mouseup
  232.   ask "Delete which topic?"
  233.   if it is empty then exit mouseup
  234.   put it into DelChoice
  235.   repeat with UDelNum = 1 to LstTNum
  236.     if DelChoice is line UDelNum of field "TpcLstFld" then exit repeat
  237.     if UDelNum is LstTNum then
  238.       show field "No Match"
  239.       exit mouseup
  240.     end if
  241.   end repeat
  242.   put line UDelNum of field "TpcOrdrFld" into ADelNum
  243.   put short name of this card into ChptNam
  244.   if ADelNum is LstTNum then
  245.     delete line UDelNum of field "TpcOrdrFld"
  246.     delete line UDelNum of field "TpcLstFld"
  247.     set cursor to 4
  248.     set lockscreen to true
  249.     go to card ChptNam & ADelNum
  250.     domenu "delete card"
  251.     repeat while short name of this card is "@"
  252.       domenu "delete card"
  253.     end repeat
  254.   else
  255.     repeat with x = 1 to LstTNum
  256.       if line x of field "TpcOrdrFld" is LstTNum then exit repeat
  257.     end repeat
  258.     put ADelNum into line x of field "TpcOrdrFld"
  259.     delete line UDelNum of field "TpcLstFld"
  260.     delete line UDelNum of field "TpcOrdrFld"
  261.     set cursor to 4
  262.     set lockscreen to true
  263.     go to card ChptNam & ADelNum
  264.     domenu "delete card"
  265.     repeat while short name of this card is "@"
  266.       domenu "delete card"
  267.     end repeat
  268.     go to card ChptNam & LstTNum
  269.     set name of this card to ChptNam & ADelNum
  270.   end if
  271.   go to card ChptNam
  272.   set lockscreen to false
  273.   flash 2
  274. end mouseUp
  275.  
  276.  
  277.  
  278.  
  279. -- part 24 (button)
  280. -- low flags: 00
  281. -- high flags: 0000
  282. -- rect: left=164 top=303 right=330 bottom=231
  283. -- title width / last selected line: 0
  284. -- icon id / first selected line: 0 / 0
  285. -- text alignment: 1
  286. -- font id: 0
  287. -- text size: 12
  288. -- style flags: 0
  289. -- line height: 16
  290. -- part name: Insert
  291. ----- HyperTalk script -----
  292. on mouseup
  293.   if short name of this card is "TpcLstTmplt" then exit mouseup
  294.   put number of lines in field "TpcLstFld" into TtlNumTpcs
  295.   if TtlNumTpcs is 0 then exit mouseup
  296.   put short name of this card into Chapt
  297.   put "Name for inserted Topic?" into prompt
  298.   ask prompt
  299.   if it is empty then exit mouseup
  300.   put it into InsertedName
  301.   put "Insert after what topic? [none]" into prompt
  302.   ask prompt
  303.   if it is empty then exit mouseup
  304.   put it into AfterName
  305.   if AfterName is "none" then
  306.     put 1 into UsrTpcNum
  307.   else
  308.     repeat with x = 1 to TtlNumTpcs
  309.       if line x of field "TpcLstFld" is AfterName then exit repeat
  310.       if x is TtlNumTpcs then
  311.         show field "No Match"
  312.         exit mouseup
  313.       end if
  314.     end repeat
  315.     put x + 1 into UsrTpcNum
  316.   end if
  317.   put InsertedName & return before line UsrTpcNum of field "TpcLstFld"
  318.   set cursor to 4
  319.   set lockscreen to true
  320.   put TtlNumTpcs + 1 into LstTpcNum
  321.   put LstTpcNum & return before line UsrTpcNum of field "TpcOrdrFld"
  322.   put PasteAtPrev("NtTmplt") into dummy
  323.   put Chapt & LstTpcNum into NtCrdNam
  324.   set the name of this card to NtCrdNam
  325.   put InsertedName into field "HeaderFld"
  326.   go to card Chapt
  327.   set lockscreen to false
  328.   flash 2
  329. end mouseup
  330.